package at.wwu.tunes2db.xml;

import org.apache.log4j.Logger;
import org.xml.sax.*;

public class LibraryErrorHandler extends Object implements ErrorHandler {

    private static final Logger log = Logger.getLogger(LibraryErrorHandler.class.getName());
    
    public void error(SAXParseException exception) throws SAXException {
        log.error(exception.getMessage());
    }

    public void fatalError(SAXParseException exception) throws SAXException {
        log.fatal(exception.getMessage());
    }

    public void warning(SAXParseException exception) throws SAXException {
        log.warn(exception.getMessage());
    }

}
